//	特殊情况2  不需要提示
export const doLogin = (data) => {
	return uni.$uv.http.post('/index/dy/dyLogin', data, {
		custom: {
			toast: false
		}
	})
}

//	注册
export const doRegister = (data) => {
	return uni.$uv.http.post('/Wechat/weMiniRegisterLogin', data)
}

//	注册
export const doBinGgh = (data) => {
	return uni.$uv.http.post('/Wechat/getPublicOpenId', data)
}

export const doCodeLogin = (data) => {
	return uni.$uv.http.post('/Wechat/autoLogin', data)
}

/**
 * 	特殊情况1: 需要返回code
 */
export const doUserInfo = () => {
	return uni.$uv.http.get('/User/userinfo', {
		custom: {
			toast: true,
			code: true
		}
	})
}

export const doMerchantInfo = () => {
	return uni.$uv.http.get('/merchant/getUserMerchant')
}

export const doUpdInfo = (data) => {
	return uni.$uv.http.post('/User/edit', data)
}



export const doSubmitAuth = (data) => {
	return uni.$uv.http.post('/merchant/saveOrUpdate', data)
}

export const doProvince = (provinceCode) => {
	return uni.$uv.http.get(`/province/getProvince/${provinceCode}`)
}

export const doGeDemandSum = (provinceCode) => {
	return uni.$uv.http.get(`/demand/getMerchantSum`)
}

export const doGeOrderSum = (provinceCode) => {
	return uni.$uv.http.get(`/orders/getMerchantSum`)
}

export const doYjList = (params) => {
	return uni.$uv.http.get(`/brokerageRecord/getBrokerageRecordList`, {
		params
	})
}

export const doWidth = (data) => {
	return uni.$uv.http.post(`/extractOrder/save`, data)
}

export const doWidthList = (params) => {
	return uni.$uv.http.get(`/extractOrder/getUserList`, {
		params
	})
}

export const doShiopLogList = (params) => {
	return uni.$uv.http.get(`/balanceRecord/getUserBalanceRecord`, {
		params
	})
}

export const doQrCode = () => {
	return uni.$uv.http.get(`/user/getRecommendCode`)
}

export const doChilderNum = () => {
	return uni.$uv.http.get(`/brokerageRecord/statistics`)
}

export const doChilderList = (params) => {
	return uni.$uv.http.get(`/brokerageRecord/affiliateList`, {
		params
	})
}

export const doNoticeList = (params) => {
	return uni.$uv.http.get(`/message/getUserList`, {
		params
	})
}

export const doFindByCity = (city) => {
	return uni.$uv.http.get(`/product/findByCity/${city}`)
}

export const doVerify = (data) => {
	return uni.$uv.http.post(`/user/getVerify`, data)
}